package com.ztesoft.web.baseconfig.db.po;

import java.util.Date;
import java.util.List;

import org.apache.commons.lang.StringUtils;

import com.ztesoft.framework.dto.AbstractDto;

public class DmStrategyPO extends AbstractDto {
	private Integer dmStrategyId;
	private Integer seqNbr;
	private String strategyName;
	private Integer hotDataFlag;
	private Integer concurrentNumber;
	private Integer upperCnt;
	private String state;
	private Date stateDate;
	private Integer staffId;
	private Integer batchCommitCount;

	private Integer dmPlanId;
	private Integer groupNbr;
	private String groupName;
	private Date expDate;

	private Integer sourceDataId;
	private Integer srcDbLinkId;
	private String srcTableName;
	private Integer archiveMode;
	private Integer archiveType;
	private String keyColumn;
	private String selectCondition;

	private Integer targetDataId;
	private Integer targetDbLinkId;
	private String targetTableName;

	private ColumnNamePO[] allKeyColumn;

	// 策略下的源数据
	private DmSrcTablePO dmSrcTablePO;
	// 策略下的目标数据
	private List<DmTargetTablePO> dmTargetTablePOList;

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public List<DmTargetTablePO> getDmTargetTablePOList() {
		return dmTargetTablePOList;
	}

	public void setDmTargetTablePOList(List<DmTargetTablePO> dmTargetTablePOList) {
		this.dmTargetTablePOList = dmTargetTablePOList;
	}

	public DmSrcTablePO getDmSrcTablePO() {
		return dmSrcTablePO;
	}

	public void setDmSrcTablePO(DmSrcTablePO dmSrcTablePO) {
		this.dmSrcTablePO = dmSrcTablePO;
	}

	public ColumnNamePO[] getAllKeyColumn() {
		return allKeyColumn;
	}

	public void setAllKeyColumn(ColumnNamePO[] allKeyColumn) {
		this.allKeyColumn = allKeyColumn;
	}

	public Integer getBatchCommitCount() {
		return batchCommitCount;
	}

	public void setBatchCommitCount(Integer batchCommitCount) {
		this.batchCommitCount = batchCommitCount;
	}

	public Integer getSourceDataId() {
		return sourceDataId;
	}

	public void setSourceDataId(Integer sourceDataId) {
		this.sourceDataId = sourceDataId;
	}

	public Integer getSrcDbLinkId() {
		return srcDbLinkId;
	}

	public void setSrcDbLinkId(Integer srcDbLinkId) {
		this.srcDbLinkId = srcDbLinkId;
	}

	public String getSrcTableName() {
		return srcTableName;
	}

	public void setSrcTableName(String srcTableName) {
		this.srcTableName = srcTableName;
	}

	public Integer getArchiveMode() {
		return archiveMode;
	}

	public void setArchiveMode(Integer archiveMode) {
		this.archiveMode = archiveMode;
	}

	public Integer getArchiveType() {
		return archiveType;
	}

	public void setArchiveType(Integer archiveType) {
		this.archiveType = archiveType;
	}

	public String getKeyColumn() {
		return keyColumn;
	}

	public void setKeyColumn(String keyColumn) {
		this.keyColumn = keyColumn;
	}

	public String getSelectCondition() {
		return selectCondition;
	}

	public void setSelectCondition(String selectCondition) {
		this.selectCondition = selectCondition;
	}

	public Integer getTargetDataId() {
		return targetDataId;
	}

	public void setTargetDataId(Integer targetDataId) {
		this.targetDataId = targetDataId;
	}

	public Integer getTargetDbLinkId() {
		return targetDbLinkId;
	}

	public void setTargetDbLinkId(Integer targetDbLinkId) {
		this.targetDbLinkId = targetDbLinkId;
	}

	public String getTargetTableName() {
		return targetTableName;
	}

	public void setTargetTableName(String targetTableName) {
		this.targetTableName = targetTableName;
	}

	public Date getExpDate() {
		return expDate;
	}

	public void setExpDate(Date expDate) {
		this.expDate = expDate;
	}

	public Integer getDmPlanId() {
		return dmPlanId;
	}

	public void setDmPlanId(Integer dmPlanId) {
		this.dmPlanId = dmPlanId;
	}

	public Integer getGroupNbr() {
		return groupNbr;
	}

	public void setGroupNbr(Integer groupNbr) {
		this.groupNbr = groupNbr;
	}

	public Integer getDmStrategyId() {
		return dmStrategyId;
	}

	public void setDmStrategyId(Integer dmStrategyId) {
		this.dmStrategyId = dmStrategyId;
	}

	public Integer getSeqNbr() {
		return seqNbr;
	}

	public void setSeqNbr(Integer seqNbr) {
		this.seqNbr = seqNbr;
	}

	public String getStrategyName() {
		return StringUtils.isBlank(strategyName) ? strategyName : strategyName.trim();
	}

	public void setStrategyName(String strategyName) {
		this.strategyName = strategyName;
	}

	public Integer getHotDataFlag() {
		return hotDataFlag;
	}

	public void setHotDataFlag(Integer hotDataFlag) {
		this.hotDataFlag = hotDataFlag;
	}

	public Integer getConcurrentNumber() {
		return concurrentNumber;
	}

	public void setConcurrentNumber(Integer concurrentNumber) {
		this.concurrentNumber = concurrentNumber;
	}

	public Integer getUpperCnt() {
		return upperCnt;
	}

	public void setUpperCnt(Integer upperCnt) {
		this.upperCnt = upperCnt;
	}

	public String getState() {
		return StringUtils.isBlank(state) ? state : state.trim();
	}

	public void setState(String state) {
		this.state = state;
	}

	public Date getStateDate() {
		return stateDate;
	}

	public void setStateDate(Date stateDate) {
		this.stateDate = stateDate;
	}

	public Integer getStaffId() {
		return staffId;
	}

	public void setStaffId(Integer staffId) {
		this.staffId = staffId;
	}

}